import Vapor
import Fluent

final class User: Model, Content {
    static let schema: String = "users"
    @ID
    var id: UUID?
    @Field(key: "abbreviation")
    var abbreviation: String
    
    @Field(key: "firstName")
    var firstName: String
    
    @Field(key: "lastName")
    var lastName: String
    
    @Field(key: "machineUniqueIdentification")
    var machineUniqueIdentification: String
    
    @Field(key: "email")
    var email: String
    
    @Field(key: "telephone")
    var telephone: String
    
    @Field(key: "nextcloudPassword")
    var nextcloudPassword: String
        
    @Field(key: "isMale")
    var isMale: Bool

    
    @Field(key: "isBlocked")
    var isBlocked: Bool
    
    @Field(key: "isAllowedToChangeImages")
    var isAllowedToChangeImages: Bool
    
    @Field(key: "isAllowedToChangeReferences")
    var isAllowedToChangeReferences: Bool
    
    @Field(key: "isAllowedToSendMessage")
    var isAllowedToSendMessage: Bool
    
    @Field(key: "isAllowedToChangePDFs")
    var isAllowedToChangePDFs: Bool
    
    @Field(key: "isAllowedToChangeVideos")
    var isAllowedToChangeVideos: Bool
            
    @Field(key: "licenseExpire")
    var licenseExpire: String
 
    init() {
        
    }
    
    
    
    
}
